﻿<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="AdminPostList.ascx.cs"
    Inherits="ud_Article.UI.AdminPostList" %>
<%@ Import Namespace="ud_Article.UI" %>
<%@ Register TagPrefix="blog" TagName="TagList" Src="~/Article/Controls/CategoryListControl.ascx" %>
<%@ Register TagPrefix="blog" TagName="Archives" Src="~/Article/Controls/ArchiveListControl.ascx" %>
<%@ Register TagPrefix="blog" TagName="FeedLinks" Src="~/Article/Controls/FeedLinksControl.ascx" %>
<%@ Register TagPrefix="blog" TagName="StatsControl" Src="~/Article/Controls/StatsControl.ascx" %>
<div class="blogwrapper">
    <asp:Panel ID="divNav" runat="server" CssClass="blognavright" SkinID="plain">
        <asp:Calendar ID="calBlogNav" runat="server" EnableViewState="false" CaptionAlign="Top"
            CssClass="aspcalendarmain" DayHeaderStyle-CssClass="aspcalendardayheader" DayNameFormat="FirstLetter"
            DayStyle-CssClass="aspcalendarday" FirstDayOfWeek="sunday" NextMonthText="+"
            NextPrevFormat="CustomText" NextPrevStyle-CssClass="aspcalendarnextprevious"
            OtherMonthDayStyle-CssClass="aspcalendarothermonth" PrevMonthText="-" SelectedDayStyle-CssClass="aspcalendarselectedday"
            SelectorStyle-CssClass="aspcalendarselector" ShowDayHeader="true" ShowGridLines="false"
            ShowNextPrevMonth="true" ShowTitle="true" TitleFormat="MonthYear" TitleStyle-CssClass="aspcalendartitle"
            TodayDayStyle-CssClass="aspcalendartoday" WeekendDayStyle-CssClass="aspcalendarweekendday">
        </asp:Calendar>
        <blog:FeedLinks ID="Feeds" runat="server" />
        <asp:Panel ID="pnlStatistics" runat="server">
            <blog:StatsControl ID="stats" runat="server" />
        </asp:Panel>
        <asp:Panel ID="pnlCategories" runat="server" SkinID="plain">
            <blog:TagList ID="tags" runat="server" />
        </asp:Panel>
        <asp:Panel ID="pnlArchives" runat="server" SkinID="plain">
            <blog:Archives ID="archive" runat="server" />
            <br class="clear" />
        </asp:Panel>
    </asp:Panel>
    <asp:Panel ID="divblog" runat="server" CssClass="blogcenter-rightnav" SkinID="plain">
        <asp:Repeater ID="rptBlogs" runat="server" SkinID="Blog" EnableViewState="true">
            <ItemTemplate>
                <div class="blogitem">
                    <span class="blogtitle">
                        <asp:HyperLink SkinID="BlogTitle" ID="lnkTitle" runat="server" EnableViewState="false"
                            Text='<%# DataBinder.Eval(Container.DataItem,"Heading") %>' Visible='<%# Config.UseLinkForHeading %>'
                            NavigateUrl='<%# FormatBlogTitleUrl(DataBinder.Eval(Container.DataItem,"ItemUrl").ToString(), Convert.ToInt32(DataBinder.Eval(Container.DataItem,"ItemID")))  %>'>
                        </asp:HyperLink><asp:Literal ID="litTitle" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Heading") %>'
                            Visible='<%#(!Config.UseLinkForHeading) %>' />&nbsp;(<%# FormatBlogDate(Convert.ToDateTime(Eval("StartDate"))) %>)
                        <asp:HyperLink ID="editLink" runat="server" EnableViewState="false" Text="<%# EditLinkText %>"
                            ToolTip="<%# EditLinkTooltip %>" ImageUrl='<%# EditLinkImageUrl %>' NavigateUrl='<%# SiteRoot + "/Article/EditPost.aspx?pageid=" + PageId + "&amp;ItemID=" + DataBinder.Eval(Container.DataItem,"ItemID") + "&amp;mid=" + ModuleId %>'
                            Visible="<%# IsEditable %>" CssClass="articleeditbutton" />
                        <asp:ImageButton ID="ibtnDelete" runat="server" Visible="<%# IsEditable && false %>" ImageUrl='<%# DeleteLinkImage %>'
                            CommandName="Delete" CommandArgument='<%# Eval("ItemID") %>' ToolTip="<%# DeleteLinkTooltip %>" CssClass="articledeletebutton"
                            CausesValidation="false" />
                    </span>
                    <div class="blogdate">
                        <span class="blogauthor">
                            <%# FormatPostAuthor(DataBinder.Eval(Container.DataItem, "Name").ToString())%></span>
                    </div>
                    <asp:Panel ID="pnlPost" runat="server" Visible="false">
                        <portal:mojoRating runat="server" ID="Rating" Enabled='<%# EnableContentRating %>'
                            ContentGuid='<%# new Guid(Eval("BlogGuid").ToString()) %>' AllowFeedback='false' />
                        <mp:OdiogoItem ID="od1" runat="server" OdiogoFeedId='<%# Config.OdiogoFeedId %>'
                            ItemId='<%# DataBinder.Eval(Container.DataItem,"ItemID") %>' ItemTitle='<%# Eval("Heading") %>' />
                        <div class="blogtext">
                            <div class='<%# "hideme mojo-dialog " + ModuleId + Eval("ItemID") %>' title='<%# Eval("Heading") %>'>
                                <asp:Image ID="image2" runat="server" ImageUrl='<%# ArticleUtils.FormatImageDialog(ConfigurationManager.AppSettings["ArticleImagesFolder"], Eval("ImageUrl").ToString()) %>'
                                    Visible='<%# Config.ShowImage %>'
                                    CssClass='<%# "rimg" + ModuleId + Eval("ItemID") %>' />
                            </div>
                            <div class="image-wrapper">
                                <a href='<%# ArticleUtils.FormatBlogTitleUrl(SiteRoot, Eval("ItemUrl").ToString(), Convert.ToInt32(Eval("ItemID")), PageId, ModuleId) %>'>
                                    <asp:Image ID="image1" runat="server" ImageUrl='<%# ArticleUtils.FormatImageArticle(ConfigurationManager.AppSettings["ArticleImagesFolder"], Eval("ImageUrl").ToString()) %>'
                                        Visible='<%# Config.ShowImage %>'
                                        CssClass='<%# "img" + ModuleId + Eval("ItemID") %>' ToolTip='<%# DataBinder.Eval(Container.DataItem,"Heading") %>' />
                                </a>
                            </div>
                            <asp:Literal ID="ltrScriptDialog" runat="server" Visible='<%# Config.UseImageDialog %>'
                                Text='<%# ArticleUtils.FormatDialogScript(ModuleId.ToString(), Eval("ItemID").ToString()) %>' />
                        </div>
                        <goog:LocationMap ID="gmap" runat="server" Visible='<%# ((Eval("Location").ToString().Length > 0)&&(ShowGoogleMap)) %>'
                            Location='<%# Eval("Location") %>' GMapApiKey='<%# GmapApiKey %>' EnableMapType='<%# Config.GoogleMapEnableMapType %>'
                            EnableZoom='<%# Config.GoogleMapEnableZoom %>' ShowInfoWindow='<%# Config.GoogleMapShowInfoWindow %>'
                            EnableLocalSearch='<%# Config.GoogleMapEnableLocalSearch %>' EnableDrivingDirections='<%# Config.GoogleMapEnableDirections %>'
                            GmapType='<%# Config.GoogleMapType %>' ZoomLevel='<%# Config.GoogleMapInitialZoom %>'
                            MapHeight='<%# Config.GoogleMapHeight %>' MapWidth='<%# Config.GoogleMapWidth %>'>
                        </goog:LocationMap>
                        <div class="bsocial">
                            <portal:TweetThisLink ID="tt1" runat="server" Visible='<%# Config.ShowTweetThisLink && !Config.UseExcerpt %>'
                                UrlToTweet='<%# FormatBlogTitleUrl(DataBinder.Eval(Container.DataItem,"ItemUrl").ToString(), Convert.ToInt32(DataBinder.Eval(Container.DataItem,"ItemID"))) %>'
                                TitleToTweet='<%# DataBinder.Eval(Container.DataItem,"Heading") %>' />
                            <portal:FacebookLikeButton ID="fbl1" runat="server" Visible='<%# (Config.UseFacebookLikeButton && !Config.UseExcerpt) %>'
                                UrlToLike='<%# FormatBlogTitleUrl(DataBinder.Eval(Container.DataItem,"ItemUrl").ToString(), Convert.ToInt32(DataBinder.Eval(Container.DataItem,"ItemID"))) %>'
                                ColorScheme='<%# Config.FacebookLikeButtonTheme %>' ShowFaces='<%# Config.FacebookLikeButtonShowFaces %>'
                                WidthInPixels='<%# Config.FacebookLikeButtonWidth %>' HeightInPixels='<%# Config.FacebookLikeButtonHeight %>' />
                        </div>
                        <div class="blogcommentlink">
                            <asp:HyperLink ID="Hyperlink2" runat="server" EnableViewState="false" Text='<%# FeedBackLabel + "(" + DataBinder.Eval(Container.DataItem,"CommentCount") + ")" %>'
                                Visible="false" NavigateUrl='<%# FormatBlogUrl(DataBinder.Eval(Container.DataItem,"ItemUrl").ToString(), Convert.ToInt32(DataBinder.Eval(Container.DataItem,"ItemID")))  %>'
                                CssClass="blogcommentlink"></asp:HyperLink>
                            <asp:HyperLink ID="Hyperlink1" runat="server" EnableViewState="false" Text='<%# FeedBackLabel %>'
                                Visible="false" NavigateUrl='<%# FormatBlogUrl(DataBinder.Eval(Container.DataItem,"ItemUrl").ToString(), Convert.ToInt32(DataBinder.Eval(Container.DataItem,"ItemID")))  %>'
                                CssClass="blogcommentlink"></asp:HyperLink>&#160;
                        </div>
                    </asp:Panel>
                </div>
            </ItemTemplate>
        </asp:Repeater>
        <asp:Panel ID="pnlBlogPager" runat="server" CssClass="blogpager">
            <portal:mojoCutePager ID="pgr" runat="server" />
        </asp:Panel>
    </asp:Panel>
    <div class="blogcopyright">
        <asp:Label ID="lblCopyright" runat="server" />
    </div>
    <portal:DisqusWidget ID="disqus" runat="server" />
</div>
<div class="modulefooter">
</div>
